package com.qingxin.park.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;

/**
 * 批次产品表（追溯物）视图对象
 */
@Entity
@Table(name = "batch_products_view")
public class BatchProductsView extends com.qingxin.sys.entity.BaseEntity
		implements java.io.Serializable {
	private static final long serialVersionUID = -6687285129626767384L;
	// Fields
	private String pdtid;
	private String pdtname;
	private String pbn;
	private String status;//状态0:未确认1:已确认
	private Date beginTime;//种植时间
	private Date endTime;//收获时间
	private Integer amount;
	private String worker;
	private String workerName;
	private Date createTime;
	private String plantid;
	private String cropid;
	private String cropName;
	private String blockid;
	private String blockName;
	private String parkid;
	private String parkName;
	private Integer parkLevel;
	private String companyid;
	private String companyNo;
	private String companyName;
	private String parkStatus;//园区状态1正常2停用
	private String units;
	private String pdtimg;
	private String pdttype;//类型：1种植、2养殖、3加工
	private String pdtcode;//产品编码，7位数字1000000~9999999
	private String ncsc;//是否已进行农残速测：0无、1有
	private Date ncscTime;
	// Constructors

	/** default constructor */
	public BatchProductsView() {
	}

	/** minimal constructor */
	public BatchProductsView(String plantid, String blockid, String parkid) {
		this.plantid = plantid;
		this.blockid = blockid;
		this.parkid = parkid;
	}

	
	public BatchProductsView(String pdtid, String pdtname, String pbn,
			String status, Date beginTime, Date endTime, Integer amount,
			String workerName, String cropName, String blockName, String units, String pdtcode) {
		this.pdtid = pdtid;
		this.pdtname = pdtname;
		this.pbn = pbn;
		this.status = status;
		this.beginTime = beginTime;
		this.endTime = endTime;
		this.amount = amount;
		this.workerName = workerName;
		this.cropName = cropName;
		this.blockName = blockName;
		this.units = units;
		this.pdtcode = pdtcode;
	}

	/** full constructor */
	public BatchProductsView(String pdtname, String pbn, String status,
			Date beginTime, Date endTime, Integer amount,
			String worker, String workerName, Date createTime,
			String plantid, String cropid, String cropName, String blockid,
			String blockName, String parkid, String parkName,
			Integer parkLevel, String parkStatus, String units, String pdtimg) {
		this.pdtname = pdtname;
		this.pbn = pbn;
		this.status = status;
		this.beginTime = beginTime;
		this.endTime = endTime;
		this.amount = amount;
		this.worker = worker;
		this.workerName = workerName;
		this.createTime = createTime;
		this.plantid = plantid;
		this.cropid = cropid;
		this.cropName = cropName;
		this.blockid = blockid;
		this.blockName = blockName;
		this.parkid = parkid;
		this.parkName = parkName;
		this.parkLevel = parkLevel;
		this.parkStatus = parkStatus;
		this.units = units;
		this.pdtimg = pdtimg;
	}
	
	public BatchProductsView(String pdtid, String pdtname, String pbn,
			String status, Date beginTime, Date endTime, Integer amount,
			String worker, String workerName, Date createTime, String plantid,
			String cropid, String cropName, String blockid, String blockName,
			String parkid, String parkName, Integer parkLevel,
			String companyid, String companyNo, String companyName,
			String parkStatus, String units, String pdtimg, String pdttype) {
		this.pdtname = pdtname;
		this.pbn = pbn;
		this.status = status;
		this.beginTime = beginTime;
		this.endTime = endTime;
		this.amount = amount;
		this.worker = worker;
		this.workerName = workerName;
		this.createTime = createTime;
		this.plantid = plantid;
		this.cropid = cropid;
		this.cropName = cropName;
		this.blockid = blockid;
		this.blockName = blockName;
		this.parkid = parkid;
		this.parkName = parkName;
		this.parkLevel = parkLevel;
		this.companyid = companyid;
		this.companyNo = companyNo;
		this.companyName = companyName;
		this.parkStatus = parkStatus;
		this.units = units;
		this.pdtimg = pdtimg;
		this.pdttype = pdttype;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "uuid.hex")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "pdtid", nullable = false, length = 32)
	public String getPdtid() {
		return this.pdtid;
	}

	public void setPdtid(String pdtid) {
		this.pdtid = pdtid;
	}

	@Column(name = "pdtname", length = 100)
	public String getPdtname() {
		return this.pdtname;
	}

	public void setPdtname(String pdtname) {
		this.pdtname = pdtname;
	}

	@Column(name = "pbn", length = 20)
	public String getPbn() {
		return this.pbn;
	}

	public void setPbn(String pbn) {
		this.pbn = pbn;
	}

	@Column(name = "status", length = 1)
	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	@Column(name = "begin_time", length = 23)
	public Date getBeginTime() {
		return this.beginTime;
	}

	public void setBeginTime(Date beginTime) {
		this.beginTime = beginTime;
	}

	@Column(name = "end_time", length = 23)
	public Date getEndTime() {
		return this.endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	@Column(name = "amount")
	public Integer getAmount() {
		return this.amount;
	}

	public void setAmount(Integer amount) {
		this.amount = amount;
	}

	@Column(name = "worker", length = 32)
	public String getWorker() {
		return this.worker;
	}

	public void setWorker(String worker) {
		this.worker = worker;
	}

	@Column(name = "worker_name", length = 50)
	public String getWorkerName() {
		return this.workerName;
	}

	public void setWorkerName(String workerName) {
		this.workerName = workerName;
	}

	@Column(name = "create_time", length = 23)
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Column(name = "plantid", nullable = false, length = 32)
	public String getPlantid() {
		return this.plantid;
	}

	public void setPlantid(String plantid) {
		this.plantid = plantid;
	}

	@Column(name = "cropid", length = 32)
	public String getCropid() {
		return this.cropid;
	}

	public void setCropid(String cropid) {
		this.cropid = cropid;
	}

	@Column(name = "crop_name", length = 50)
	public String getCropName() {
		return this.cropName;
	}

	public void setCropName(String cropName) {
		this.cropName = cropName;
	}

	@Column(name = "blockid", nullable = false, length = 32)
	public String getBlockid() {
		return this.blockid;
	}

	public void setBlockid(String blockid) {
		this.blockid = blockid;
	}

	@Column(name = "block_name", length = 50)
	public String getBlockName() {
		return this.blockName;
	}

	public void setBlockName(String blockName) {
		this.blockName = blockName;
	}

	@Column(name = "parkid", nullable = false, length = 32)
	public String getParkid() {
		return this.parkid;
	}

	public void setParkid(String parkid) {
		this.parkid = parkid;
	}

	@Column(name = "park_name", length = 100)
	public String getParkName() {
		return this.parkName;
	}

	public void setParkName(String parkName) {
		this.parkName = parkName;
	}

	@Column(name = "park_level")
	public Integer getParkLevel() {
		return this.parkLevel;
	}

	public void setParkLevel(Integer parkLevel) {
		this.parkLevel = parkLevel;
	}

	@Column(name = "park_status", length = 1)
	public String getParkStatus() {
		return this.parkStatus;
	}

	public void setParkStatus(String parkStatus) {
		this.parkStatus = parkStatus;
	}
	
	@Column(name = "units", length = 20)
	public String getUnits() {
		return units;
	}

	public void setUnits(String units) {
		this.units = units;
	}
	
	@Column(name = "pdtimg", length = 100)
	public String getPdtimg() {
		return pdtimg;
	}

	public void setPdtimg(String pdtimg) {
		this.pdtimg = pdtimg;
	}
	
	@Column(name = "pdttype", length = 1)
	public String getPdttype() {
		return pdttype;
	}

	public void setPdttype(String pdttype) {
		this.pdttype = pdttype;
	}
	
	@Column(name = "companyid", nullable = false, length = 32)
	public String getCompanyid() {
		return this.companyid;
	}

	public void setCompanyid(String companyid) {
		this.companyid = companyid;
	}
	
	@Column(name = "company_no", length = 20)
	public String getCompanyNo() {
		return this.companyNo;
	}

	public void setCompanyNo(String companyNo) {
		this.companyNo = companyNo;
	}

	@Column(name = "company_name", length = 100)
	public String getCompanyName() {
		return this.companyName;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}
	
	@Column(name = "pdtcode", length = 20)
	public String getPdtcode() {
		return pdtcode;
	}

	public void setPdtcode(String pdtcode) {
		this.pdtcode = pdtcode;
	}
	@Column(name = "ncsc", length = 1)
	public String getNcsc() {
		return ncsc;
	}

	public void setNcsc(String ncsc) {
		this.ncsc = ncsc;
	}

	
	@Column(name = "ncsc_time", length = 23)
	public Date getNcscTime() {
		return ncscTime;
	}

	public void setNcscTime(Date ncscTime) {
		this.ncscTime = ncscTime;
	}

}